﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace BathhouseService.Models.SqlModels
{
    /// <summary>
    /// 服务记录
    /// </summary>
    public class ServiceRecord : PersistPoco
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public new int ID { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        [Display(Name = "订单号")]
        public string OrderId { get; set; }
        /// <summary>
        /// 使用服务
        /// </summary>
        [Display(Name = "使用服务")]
        [Required(ErrorMessage = "使用服务是必填项")]
        public int ValueAddedServicesId { get; set; }
        /// <summary>
        /// 使用服务
        /// </summary>
        [Display(Name = "使用服务")]
        public ValueAddedServices ValueAddedServices { get; set; }
        /// <summary>
        /// 服务人标识
        /// </summary>
        [Display(Name = "服务人标识")]
        [Required(ErrorMessage = "服务人标识是必填项")]
        public Guid ServicePersonId { get; set; }
        /// <summary>
        /// 服务人姓名
        /// </summary>
        [Display(Name = "服务人姓名")]
        [Required(ErrorMessage = "服务人姓名是必填项")]
        public string ServicePersonName { get; set; }
        /// <summary>
        /// 客户标识
        /// </summary>
        [Display(Name = "客户标识")]
        [Required(ErrorMessage = "客户标识是必填项")]
        public Guid CustomerId { get; set; }
        /// <summary>
        /// 客户姓名
        /// </summary>
        [Display(Name = "客户姓名")]
        [Required(ErrorMessage = "客户姓名是必填项")]
        public string CustomerName { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        [Display(Name = "支付时间")]
        [Required(ErrorMessage = "支付时间是必填项")]
        public DateTime PaymentTime { get; set; }
        /// <summary>
        /// 服务评分
        /// </summary>
        [Display(Name = "服务评分")]
        public int Score { get; set; }

    }
}
